package com.JustTest;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

/**
 * Created by mike on 18/1/31.
 */
public class MyBeanPostProcessor implements BeanPostProcessor{
    public MyBeanPostProcessor() {
        super();
        System.out.println("no.3.........."+this.getClass().getName()+"-MyBeanPostProcessor");
    }

    @Override
    public Object postProcessBeforeInitialization(Object o, String s) throws BeansException {
        System.out.println("no.11.........."+this.getClass().getName()+"-postProcessBeforeInitialization");
        return o;
    }

    @Override
    public Object postProcessAfterInitialization(Object o, String s) throws BeansException {
        System.out.println("no.14.........."+this.getClass().getName()+"-postProcessAfterInitialization");
        return o;
    }
}
